﻿@extends('layouts.home')
@section('info')
    <title>{{$cates->cate_name}} - {{Config::get('web.web_name')}}</title>
    <meta name="keywords" content="{{$cates->cate_keywords}}" />
    <meta name="description" content="{{$cates->cate_description}}" />
@endsection
@section('content')

    <article class="blogs">
        <h1 class="t_nav"><span>{{$cates->cate_description}}</span><a href="{{url('/')}}" class="n1">网站首页</a><a href="{{url('cate/'.$cates->cate_id)}}" class="n2">{{$cates->cate_name}}</a></h1>
        <div class="newblog left">
            @foreach($data as $d)
            <h2>{{$d->art_title}}</h2>
            <p class="dateview"><span>　发布时间：{{date('Y-m-d',$d->art_time)}}</span><span>作者：{{$d->art_editor}}</span><span>分类：[<a href="{{url('cate/'.$cates->cate_id)}}">{{$cates->cate_name}}</a>]</span></p>
            <figure><img src="{{url($d->art_thumb)}}"></figure>
            <ul class="nlist" style="position:relative">
                <p>{{mb_strimwidth($d->art_description,0,300)}}</p>
                <a style="position:absolute;top:70px;right:0px" title="{{$d->art_title}}" href="{{url('a/'.$d->art_id)}}" target="_blank" class="readmore">阅读全文>></a>
            </ul>
            <div class="line"></div>
            @endforeach



            <div class="blank"></div>

            <div class="page">
                {{$data->links()}}
            </div>
        </div>
        <aside class="right">
            @if($subcate->all())
            <div class="rnav" style="margin:20px 0 10px 0;">
                <ul>
                    @foreach($subcate as $k=>$s)
                    <li class={{"rnav".($k+1)}}><a href="{{url('cate/'.$s->cate_id)}}" target="_blank">{{$s->cate_name}}</a></li>
                    @endforeach
                </ul>
            </div>
            @endif
            <!-- Baidu Button BEGIN -->
                <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
                <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
                <script type="text/javascript" id="bdshell_js"></script>
                <script type="text/javascript">
                    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
                </script>
                <!-- Baidu Button END -->
            <div class="news" style="float:left">
                @parent
            </div>


        </aside>
    </article>
@endsection


